import { Button, Drawer, Popover, List, Radio, Tag } from 'antd';
import React, { useEffect, useState } from 'react';
import ReactDOM from 'react-dom';
import { GlobalVal } from '../../global';
import { login } from '../methods';
// import { getData, setData } from '../../popup/methods'
// import { ENVDATAList, USERList } from '../../popup/const'
// 快捷登录
export function LoginQuikly() {
    const [userList, userListSet] = useState([{name:'111'}])

    let content = (
        <React.Fragment>
            {userList.map(({ name, pwd }) => {
                return <Button key={name} onClick={() => { login(name, pwd) }} title={`${name}/${pwd}`}>
                    <center>{name}</center>
                    <center>{pwd}</center>
                </Button>
            })}
        </React.Fragment>
    );
    return content
}

